on JKToolScript(toolName, scriptStr, path)    if scriptStr contains "JKTool" then        tell application "Terminal"            do script with command scriptStr with administrator privileges        end tell    else        tell application toolName            do shell script scriptStr & quoted form of path        end tell    end ifend JKToolScript